<?php include "conexao.php";


$id_categoria            = $_GET["id_categoria"];
$id_subcategoria         = $_GET["id_subcategoria"];
$id_anuncios_categoria   = $_GET["id_anuncios_categoria"];

?>

 <!-- Arquivos utilizados pelo jQuery lightBox plugin -->
 <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
    <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen"/> 
    <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
    <!-- Ativando o jQuery lightBox plugin -->
    <script type="text/javascript">
    $(function() {
        $('#gallery a').lightBox();
    });
    </script> 
   	<style type="text/css">
	/* jQuery lightBox plugin - Gallery style */
	#gallery {
		background-color: white;
		padding: 10px;
		width: 520px;
	}
	#gallery ul { list-style: none; }
	#gallery ul li { display: inline; }
	#gallery ul img {
		border: 5px solid #336633;
		border-width: 5px 5px 20px;
	}
	#gallery ul a:hover img {
		border: 5px solid red;
		border-width: 5px 5px 20px;
		color: red;
	}
	#gallery ul a:hover { color: #fff; }
	
	</style>
      <?php  		$cont=1;
		$sql_cat = mysql_query("SELECT * FROM categoria_servicos WHERE  id_categoria = '$id_categoria'");
		$linha_cat = mysql_fetch_array($sql_cat);
		
		
		
		 //$sql_not = mysql_query("SELECT * FROM anuncios_categoria WHERE id_subcategoria = '$id_subcategoria' and id_categoria = '$id_categoria' ORDER BY id_anuncios_categoria DESC");
		 $sql_not = mysql_query("SELECT * FROM anuncios_categoria WHERE id_anuncios_categoria = '$id_anuncios_categoria'");
		 $linha_ver = mysql_fetch_array($sql_not);
		
		
?>
	
    <div style="height:150px; width:800px; background-color: #FBFBFB; margin-left:190px; border:1px solid #F2FDFD;">
    
     <div style=" width:180px;  float:left; margin-left:100px; margin-top:50px; font-size:22px; text-transform:uppercase; font-weight:bold;" align="center">
    <?php echo $linha_cat["categoria"];?>
    
    </div>
    <div style=" width:490px; height:125px;border:1px solid #F2F2F2; float:left; margin-left:5px; margin-top:15px; text-transform:capitalize; font-size:16px; font-weight:bold; color:#FF6600;" align="center">
    <?php 
	  
	 echo $linha_ver["endereco"].", N&deg; ".$linha_ver["numero"].", ".$linha_ver["bairro"]." - ".$linha_ver["cidade"]."/".$linha_ver["estado"]."<br>"; 
	 echo "Telefone:<font color=white>.</font>(".$linha_ver["ddd"].") ".$linha_ver["telefone"]."<br>";
	 if($linha_ver["site"]!=""){ echo "<a href=http://".$linha_ver["site"]." target=_blank>Site:<font color=white>.</font>".$linha_ver["site"]."</a><br>";}
	 echo "Email:<font color=white>.</font>".$linha_ver["email"];
	 
	 
	 ?>
    </div>
    </div>
       <div style="height:50px; width:100%;">
        <div style="height:50px; width100%; font-size:24px; font-weight:bold; color:#FF9900; text-transform:uppercase; margin-left:10px; margin-right:50px;" align="center"><?php 
		echo $linha_ver["titulo"];
		?></div>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
       </div>
       <div style="height:120px; width:660px; border:3px solid #000000; margin-left:240px;">
        <div style="height:120px; width:100%; margin-left:10px; margin-right:50px;" align="center">
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
          <!--inicia galeria -->
 
 <div id="gallery">
<?php 
  $sql_album = mysql_query("SELECT foto, foto2, foto3, foto4, foto5 FROM anuncios_categoria WHERE id_anuncios_categoria = ".$linha_ver["id_anuncios_categoria"]."");
  ?>
	  <?php $linha_album = mysql_fetch_array($sql_album);
?>

<!--<div style="margin: 2px;  width:80px; height:20px; float: left;"> -->

 
 <a href="banner/<?php echo $linha_album["foto"];?>" title="
 <?php if($linha_album["foto2"]!=""){echo "<img src=banner/".$linha_album['foto2']." width=30 height=30/>";}?>
  <?php if($linha_album["foto3"]!=""){echo "<img src=banner/".$linha_album['foto3']." width=30 height=30/>";}?>
   <?php if($linha_album["foto4"]!=""){echo "<img src=banner/".$linha_album['foto4']." width=30 height=30/>";}?>
   <?php if($linha_album["foto5"]!=""){echo "<img src=banner/".$linha_album['foto5']." width=30 height=30/>";}?>">
 <img src="banner/<?php echo $linha_album["foto"];?>" width="80" height="80"/>
 </a>
 
<?php if($linha_album["foto2"]!=""){?> <a href="banner/<?php echo $linha_album["foto2"];?>" title="
 <?php if($linha_album["foto"]!=""){echo "<img src=banner/".$linha_album['foto']." width=30 height=30/>";}?>
  <?php if($linha_album["foto3"]!=""){echo "<img src=banner/".$linha_album['foto3']." width=30 height=30/>";}?>
   <?php if($linha_album["foto4"]!=""){echo "<img src=banner/".$linha_album['foto4']." width=30 height=30/>";}?>
   <?php if($linha_album["foto5"]!=""){echo "<img src=banner/".$linha_album['foto5']." width=30 height=30/>";}?>">
 <img src="banner/<?php echo $linha_album["foto2"];?>" width="80" height="80"/>
 </a> <?php }?>


<?php if($linha_album["foto3"]!=""){?> <a href="banner/<?php echo $linha_album["foto3"];?>" title="
 <?php if($linha_album["foto"]!=""){echo "<img src=banner/".$linha_album['foto']." width=30 height=30/>";}?>
  <?php if($linha_album["foto2"]!=""){echo "<img src=banner/".$linha_album['foto2']." width=30 height=30/>";}?>
   <?php if($linha_album["foto4"]!=""){echo "<img src=banner/".$linha_album['foto4']." width=30 height=30/>";}?>
   <?php if($linha_album["foto5"]!=""){echo "<img src=banner/".$linha_album['foto5']." width=30 height=30/>";}?>">
 <img src="banner/<?php echo $linha_album["foto3"];?>" width="80" height="80"/>
 </a><?php }?>
 
 
 
  <?php if($linha_album["foto4"]!=""){?><a href="banner/<?php echo $linha_album["foto4"];?>" title="
 <?php if($linha_album["foto"]!=""){echo "<img src=banner/".$linha_album['foto']." width=30 height=30/>";}?>
  <?php if($linha_album["foto3"]!=""){echo "<img src=banner/".$linha_album['foto3']." width=30 height=30/>";}?>
   <?php if($linha_album["foto2"]!=""){echo "<img src=banner/".$linha_album['foto2']." width=30 height=30/>";}?>
   <?php if($linha_album["foto5"]!=""){echo "<img src=banner/".$linha_album['foto5']." width=30 height=30/>";}?>">
 <img src="banner/<?php echo $linha_album["foto4"];?>" width="80" height="80"/>
 </a><?php }?>
 
 
 
 <?php if($linha_album["foto5"]!=""){?> <a href="banner/<?php echo $linha_album["foto5"];?>" title="
 <?php if($linha_album["foto"]!=""){echo "<img src=banner/".$linha_album['foto']." width=30 height=30/>";}?>
  <?php if($linha_album["foto3"]!=""){echo "<img src=banner/".$linha_album['foto3']." width=30 height=30/>";}?>
   <?php if($linha_album["foto4"]!=""){echo "<img src=banner/".$linha_album['foto4']." width=30 height=30/>";}?>
   <?php if($linha_album["foto2"]!=""){echo "<img src=banner/".$linha_album['foto2']." width=30 height=30/>";}?>">
 <img src="banner/<?php echo $linha_album["foto5"];?>" width="80" height="80"/>
 </a> <?php }?>
 
 
<font color="blue"><?php echo substr_replace($caption, '...', 40)  ;?></font>
<!--</div> -->


 </div>
 
<!-- finaliza galeria -->
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        </div>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
       </div>
       
       <div style="height:100%; width:100%;"><!--border:1px solid #F0F0F0; background-color: #F4F4F4; -->
        <div style="height:100%; width:700px;  font-size:16px; color:#993300; margin-left:220px; margin-right:50px;" align="justify">
		<div style="margin-left:7px; margin-right:7px; margin-top:7px; height:100%;">
		<?php 
		echo $linha_ver["descricao"];
		?>
        
        </div>
        
        </div>
       </div>
 